package com.lagou.zk;

import com.lagou.zk.config.CustomerDataSource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.sql.Connection;
@SpringBootApplication
public class ZkCfgMgr {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(ZkCfgMgr.class, args);

        CustomerDataSource.init();
        Connection connection = CustomerDataSource.getConnection();
        System.out.println(connection);
    }

}
